import { RouterModule, Routes } from "@angular/router";

const appRoutes: Routes = [
	{
		path: '',
		redirectTo: 'views',
		pathMatch: 'full'
	},
	{
            path: 'views',
		loadChildren: './views/views.module#ViewsModule'
	},
	{
		path: '**', // fallback router must in the last
		loadChildren: './views/views.module#ViewsModule'
	}
];

export const routing = RouterModule.forRoot(appRoutes, { useHash: true });
